entry: Set text direction information on text handles
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 11 Jun 2015 14:18:02 +0000 (16:18 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 11 Jun 2015 15:14:23 +0000 (17:14 +0200)
This way the handles point to the right side on the presence of rtl/ltr
text.

gtk/gtkentry.c

index c1b3ab71941c4fc9432c3815a53198734ae4bc26..61c3ba48234868f31f0972eb2d0e2e80e0ce0527 100644 (file)
@@ -4174,6 +4174,7 @@ gtk_entry_move_handle (GtkEntry              *entry,
 
       _gtk_text_handle_set_visible (priv->text_handle, pos, TRUE);
       _gtk_text_handle_set_position (priv->text_handle, pos, &rect);
+      _gtk_text_handle_set_direction (priv->text_handle, pos, priv->resolved_dir);
     }
 }